package aooO.crm.Service.impl;

import aooO.crm.Service.UserService;
import aooO.crm.mapper.UserMapper;
import aooO.crm.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public User selectUserByLoginActAndPwd(Map<String,Object> map) {
        return userMapper.selectUserByLoginActAndPwd(map);
    }

    @Override
    public List<User> selectAllUser() {
        return userMapper.selectAllUser();
    }

    @Override
    public int updatePwd(Map<String,Object> map) {
        return userMapper.updatePwd(map);
    }

    @Override
    public int insertUser(User user) {
        return userMapper.insertUser(user);
    }
}
